package com.tj.collection.db.admin.dao;

import com.fqgj.common.api.Page;
import com.tj.collection.db.admin.entity.AdminEntity;
import com.tj.collection.db.admin.entity.AdminEntityConditions;
import com.tj.collection.common.old.BaseDAO;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2017/3/10
 * Time: 下午5:24
 */
public interface AdminDAO extends BaseDAO<AdminEntity, Long, AdminEntityConditions> {

    /**
     * @param adminId
     * @return
     */
    AdminEntity getByAdminId(long adminId);

    /**
     * @param account
     * @return
     */
    AdminEntity getByAccount(String account);

    /**
     * @param mobile
     * @return
     */
    List<AdminEntity> getByMobile(String mobile);

    /**
     * @param merchantCode
     * @param mobile
     * @return
     */
    List<AdminEntity> getByMerchantCodeAndMobile(String merchantCode, String mobile);

    /**
     * @param account
     * @param name
     * @param page
     * @return
     */
    List<AdminEntity> getListByAccountAndName(String account, String name, Page page, String merchantCode);

    /**
     * 获取当前系统所有的信审人员
     *
     * @return
     */
    List<AdminEntity> getAllAuditor(List<Long> auditorIdList, Long status);

    /**
     * 获取当前系统所有的信审人员
     *
     * @return
     */
    List<AdminEntity> getAllAuditor(List<Long> auditorIdList, Long status, String merchantCode);

    int updateVersionCode(Integer adminId, Integer versionCode);
}
